<h3><?php echo $this->title?></h3>

<?php if(!empty($this->data)): ?>	
	<?php foreach ($this->data as $category) :?>	
		<div class="span-3 column border" >
			<span style="font-size:120%;" >
				<?php echo $category->name ?>
				<?php $blogs_count = $category->blogs_count ?>
				<?php if(!empty($blogs_count)):?> 
					(Blog:<a href="<?php echo $this->baseUrl ?>/admin/blog/list/c_id/<?php echo $category->id; ?>"><?php echo $category->blogs_count ?></a>)
				<?php endif;?>
			</span>
			<br/>
			<em style="margin-left:20px;">
				<a href="<?php echo $this->pageInfo->getCurrentUrl();?>/do/<?php echo ActionHelper_ActionListWithPost::ACTION_EDIT ?>/id/<?php echo $category->id; ?>"><?php echo $this->translate('edit'); ?></a>
				<a href="<?php echo $this->pageInfo->getCurrentUrl();?>/do/<?php echo ActionHelper_ActionListWithPost::ACTION_DELETE ?>/id/<?php echo $category->id; ?>"><?php echo $this->translate('delete'); ?></a>
			</em>
			<br/>			
		</div>
	<?php endforeach; ?>	
<?php endif; ?>	
<div class="span-20 column" >
<?php echo $this->render("basic/form.phtml")?>
</div>
<script type="text/javascript">		
$(document).ready(function() {	
	$("#mainbody a").toAjaxLink();	
});
</script>